{% extends "charity/layout.html" %}

{% block charity_content %}
<div class="dashboard-content">
    <div class="section-header">
        <h1>Dashboard</h1>
    </div>

    <div class="stats-grid">
        <div class="stat-card">
            <h3>Total Activities</h3>
            <p class="stat-number">{{ stats.total_activities }}</p>
            <p class="stat-label">Created</p>
        </div>
        <div class="stat-card">
            <h3>Active Volunteers</h3>
            <p class="stat-number">{{ stats.active_volunteers }}</p>
            <p class="stat-label">Participating</p>
        </div>
        <div class="stat-card">
            <h3>Pending Activities</h3>
            <p class="stat-number">{{ stats.pending_activities }}</p>
            <p class="stat-label">Awaiting Review</p>
        </div>
    </div>

    <div class="section">
        <div class="section-header">
            <h2>Recent Activities</h2>
            <a href="{{ url_for('charity_activities') }}" class="btn btn-primary">View All</a>
        </div>
        <!-- Add recent activities list here -->
    </div>

    <div class="section">
        <div class="section-header">
            <h2>Quick Actions</h2>
        </div>
        <div class="quick-actions">
            <a href="{{ url_for('create_activity') }}" class="action-card">
                <i class="fas fa-plus-circle"></i>
                <h3>Create Activity</h3>
                <p>Start a new volunteer activity</p>
            </a>
            <a href="{{ url_for('charity_applications') }}" class="action-card">
                <i class="fas fa-user-check"></i>
                <h3>Review Applications</h3>
                <p>Manage volunteer applications</p>
            </a>
            <a href="{{ url_for('charity_profile') }}" class="action-card">
                <i class="fas fa-building"></i>
                <h3>Update Profile</h3>
                <p>Edit organization information</p>
            </a>
        </div>
    </div>
</div>

<style>
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin: 0.5rem 0;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.action-card h3 {
    margin: 0.5rem 0;
    color: #2c3e50;
}

.action-card p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}
</style>
{% endblock %} 